Pronamic\WordPress\Pay\Subscriptions\Subscription C

Total Complexity 102
Dependencies 13
Dependents 18
Total lines 888
Lines of code 408
Logical lines of code 227
Comment lines 310
Methods 39
Properties 4

Methods 39

Method Rating Maintainability Complexity Lines of code
get_payments_by_period()
A
47 9 36
from_json()
A
50 9 29
get_display_phase()
A
54 9 26
get_renewal_period()
S
53 6 23
is_first_payment()
S
54 6 22
get_current_phase()
S
63 4 12
add_note()
S
53 3 27
set_next_payment_date()
S
66 4 8
get_json()
S
60 3 12
get_source_text()
S
58 2 15
set_status()
S
70 3 6
is_infinite()
S
68 3 8
all_periods_created()
S
68 3 8
next_period()
S
69 2 7
get_next_period()
S
69 2 7
in_trial_period()
S
69 2 7
get_phase_by_sequence_number()
S
68 2 7
add_phase()
S
68 2 7
get_end_date()
S
69 2 7
get_date_interval()
S
69 2 7
get_payments()
S
69 2 7
new_payment()
S
58 1 15
new_period()
S
68 2 7
get_source_description()
S
64 2 10
get_source_link()
S
64 2 10
get_next_payment_delivery_date()
S
64 2 10
get_cancel_url()
S
63 1 11
get_renewal_url()
S
63 1 11
get_mandate_selection_url()
S
63 1 11
get_status()
S
82 1 3
new_phase()
S
70 1 6
get_next_payment_date()
S
82 1 3
save()
S
81 1 3
set_phases()
S
81 1 3
get_phases()
S
82 1 3
set_activated_at()
S
81 1 3
get_activated_at()
S
82 1 3
jsonSerialize()
S
81 1 3
__construct()
S
73 1 5